x=int(input("Начальная координата по оси x"))
y=int(input("Начальная координата по оси y"))
k=int(input("Коэффициент увеличения"))
from tkinter import*
if x>=0 and x<500 and y>=0 and y<500 and k==0:
    pass
    
elif 0*k+x>=0 and 0<=20*k+x<=500 and 0*k+y>=0 and 0<=30*k+y<=500 and k<0:
    pass       
elif 0*k+x>=0 and 20*k+x<=500 and 0*k+y>=0 and 30*k+y<=500 and k>0:
    pass
       
else:
    print("Размер фигуры превышает максимальный размер")
    exit()

root=Tk()
root.title("РИСОВАНИЕ")
canvas=Canvas(root,width=500,height=500,bg='white')
canvas.pack()
canvas.create_polygon(0+x,0+y,10*k+x,0+y,10*k+x,10*k+y,20*k+x,10*k+y,20*k+x,20*k+y,20*k+x,30*k+y,10*k+x,30*k+y,10*k+x,20*k+y,0*k+x,20*k+y,fill="Blue",width=1)
root.mainloop()        